package com.peng.mapper;

import com.peng.pojo.User;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface UserMapper {

    //查询单个用户
    User getUserById(int id);

    @Select("select * from user")
    List<User> getUsers();

}
